import Vue from 'vue'
import Vuex from 'vuex';
import CartProduct from "./modules/CartProduct";

// 1、安装插件Vuex
Vue.use(Vuex);

// 2、创建对象
const store =  new Vuex.Store({
  state: {},
  getters: {},
  actions: {},
  mutations: {},
  modules: {CartProduct}
});

// 3、导出store独享
export default store
